package com.ymk.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.ymk.base.BaseVO;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 会员表
 * </p>
 *
 * @author 胡泽鑫
 * @since 2023-06-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("member")
public class Member extends BaseVO {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 商户id
     */
    @TableField("mch_id")
    private Integer mchId;

    /**
     * 手机号码
     */
    @TableField("mobile")
    private String mobile;

    /**
     * 姓名
     */
    @TableField("name")
    private String name;

    /**
     * 头像
     */
    @TableField("avatar_url")
    private String avatarUrl;

    /**
     * 微信openid
     */
    @TableField("wx_open_id")
    private String wxOpenId;

    /**
     * 微信union id
     */
    @TableField("wx_union_id")
    private String wxUnionId;

    /**
     * 积分
     */
    @TableField("points")
    private BigDecimal points;

    /**
     * 总消费
     */
    @TableField("total_consumption")
    private BigDecimal totalConsumption;

    /**
     * 是否会员
     */
    @TableField("is_vip")
    private Integer isVip;

    /**
     * 状态
     */
    @TableField("status")
    private String status;


}
